﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Quicklight.Web {

   /// <summary>
   /// The IViewable interface is implemented by a class that is able to render itself within the UI component referenced by the container passed as parameter
   /// Different technologies can be used to perform the rendering. The BrowserView is an IViewable taht renders itself as HTML and is created using the Razor syntax
   /// </summary>
   public interface IViewable {

      /// <summary>
      /// An implementation of the Render method must Render the IViewable instance within the UI component specified by the container passed into the method
      /// </summary>
      /// <param name="container">The Container is a logical reference to the UI component within which the IViewable object must render itself</param>
      void Render(Container container);
   }

}
